<template>
  <view class="msgItem" @click="selected(0)">
    <view class="send-date">21:48</view>
    <view class="left">
      <u-icon :customStyle="iconStyle" name="server-fill"></u-icon>
    </view>
    <view style="width: 6px"></view>
    <view class="right">
      <view class="sender">客服A01207</view>
      <view class="msg">你的申请已经递交到用人单位</view>
    </view>
  </view>
</template>

<script>
export default {
  name: 'msgItem',
  props: {
    item: {
      type: Object,
      default: {},
    },
  },
  data() {
    return {
      iconStyle: { padding: 16 + 'rpx', background: '#007aff', borderRadius: '10rpx', color: '#EEEEEE' },
    }
  },
  computed: {},
  created() {},
  methods: {
    selected(gid) {
      this.$emit('onclickItem', gid)
    },
  },
}
</script>
<style lang="scss" scoped>
.msgItem {
  box-sizing: border-box;
  position: relative;
  box-sizing: border-box;
  // padding: 6px 12px;
  height: 92upx;
  width: 100%;
  display: flex;
  align-items: center;
  .left {
  }
  .right {
    height: 92upx;
    // background: #333333;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-bottom: 1px #e6e6e6 solid;
    justify-content: center;

    .sender {
      font-size: 24upx;
      font-weight: bold;
      margin-bottom: 4upx;
    }
    .msg {
      color: #bbbbbb;
      font-size: 22upx;
    }
  }
  .send-date {
    font-size: 11px;
    position: absolute;
    top: 2px;
    right: 2px;
    color: #cccccc;
  }
}
</style>
